package com.javaspeak.designpatterns.go4.structural.bridge;

/**
 * The TriangleBuilder is pluggable ShapeBuilder in this Bridge pattern. It can
 * be readily switched for another ShapeBuilder.
 * <p>
 * ShapeBuilderImpl passes the TriangleBuilder to its super class,
 * AbstractShapeBuilder via its constructor.
 *
 * @author John Dickerson
 */
public class TriangleBuilder implements ShapeBuilder {

    /* (non-Javadoc)
     * @see com.javaspeak.designpatterns.go4.structural.bridge.
     *      ShapeBuilder#buildShape()
     */
    @Override
    public Shape buildShape() {

        return new Triangle();
    }
}
